/*
 * 文 件 名 : Question.java
 * 版    权 : China Machi.Co.,Ltd.Copyright 2009-2011.All rights reserved
 * 描    述 : <描述>
 * 修 改 人 : lixg
 * 修改时间 : 2012-8-24
 * 跟踪单号 : <跟踪单号>
 * 修改单号 : <修改单号>
 * 修改内容 : <修改内容>
 */
package com.fire8.dolphin.model;

import java.io.Serializable;

/**
 * 问题表实体
 * 如果用户第一次使用，未注册未连网时，输入了一个问题，这时是没有用户ID的，
 * 当网络连通时，服务器根据用户MAC地址产生一个ID返回做为userId存到SharedPreferences
 * 系统自动提交问题到服务器，服务器产生一个服务器端的问题ID反回客户端
 * 系统收到返回的服务器端ID时，将远程问题ID和用户ID更新到本地数据库
 * @author  lixg
 * @version [版本号,2012-8-24]
 * @see     [相关类/方法]
 * @since   [产品/模块]
 */
public class Question implements Serializable
{
    /**
     * 注释内容
     */
    private static final long serialVersionUID = 1L;
    private String quesId;//问题ID
    private String remoteId;//问题远程ID
    private String title;//标题
    private String context;//内容
    private String updateDate;//提问日期
    private String answerNum;//回答人数
    private String userId;//提问人ID
    private String userName;//提问人名称
    private String userHead;//用户头像
    private String headType;//头像类别[1系统自带,2自定义]
    //private Integer dataType;//数据类型[0：文本；1：语音]
    private String voice;//语音文件名(包括路径)
    private String picture;//图片路径
    private long voiceLong;
    private int supportNum;//支持数量
    
    //表名
    public static final String TABLE_NAME="t_question";
    
    //列名
    public static final String C_Q_ID="q_id";
    public static final String C_REMOTE_ID="remote_id";
    public static final String C_TITLE="title";
    public static final String C_CONTEXT="context";
    public static final String C_UPDATE_DATE="update_date";
    public static final String C_ANSWER_NUM="answer_num";
    public static final String C_USER_ID="user_id";
    public static final String C_USER_NAME="user_name";
    public static final String C_USER_HEAD="user_head";
    public static final String C_HEAD_TYPE="head_type";
    public static final String C_VOICE="voice";
    public static final String C_PICTURE="picture";
    public static final String C_VOICE_LONG="voice_long";
    public static final String C_SUPPORT_NUM="support_num";
    
    /**
     * 向上查询
     */
    public static final int QUERY_UP=1;
    /**
     * 向下查询
     */
    public static final int QUERY_DOWN=0;
    
    public String getQuesId()
    {
        return quesId;
    }
    public void setQuesId(String quesId)
    {
        this.quesId = quesId;
    }
    public String getRemoteId()
    {
        return remoteId;
    }
    public void setRemoteId(String remoteId)
    {
        this.remoteId = remoteId;
    }
    public String getTitle()
    {
        return title;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }
    public String getContext()
    {
        return context;
    }
    public void setContext(String context)
    {
        this.context = context;
    }
    public String getUpdateDate()
    {
        return updateDate;
    }
    public void setUpdateDate(String updateDate)
    {
        this.updateDate = updateDate;
    }
    public String getAnswerNum()
    {
        return answerNum;
    }
    public void setAnswerNum(String answerNum)
    {
        this.answerNum = answerNum;
    }
    public String getUserId()
    {
        return userId;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }
    public String getUserName()
    {
        return userName;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }
    public String getUserHead()
    {
        return userHead;
    }
    public void setUserHead(String userHead)
    {
        this.userHead = userHead;
    }
    public String getHeadType()
    {
        return headType;
    }
    public void setHeadType(String headType)
    {
        this.headType = headType;
    }
    public String getVoice()
    {
        return voice;
    }
    public void setVoice(String voice)
    {
        this.voice = voice;
    }
    public String getPicture()
    {
        return picture;
    }
    public void setPicture(String picture)
    {
        this.picture = picture;
    }
    
    public long getVoiceLong()
    {
        return voiceLong;
    }
    public void setVoiceLong(long voiceLong)
    {
        this.voiceLong = voiceLong;
    }
    public int getSupportNum()
    {
        return supportNum;
    }
    public void setSupportNum(int supportNum)
    {
        this.supportNum = supportNum;
    }
    
    
}
